package com.base.commons.tools.enums;

import lombok.Getter;

/**
 *  系统代码枚举
 * @author zhuhecheng
 * @time 2020/08/02
 */
@Getter
public enum SystemEnum {

    GD("99"),
    BSC("01"),
    ODS("02"),
    WMS("03"),
    FMS("04"),
    BMS("05"),
    GW("06"),
    WOS("07"),
    TMS("08"),
    OWMS("09"),
    MDC("10"),
    PSC("11"),
    ;

    SystemEnum(String code){
        this.code = code;
    }

    private String code;

    public static SystemEnum of(String code) {
        if (code != null) {
            for (SystemEnum s : values()) {
                if (s.code.equals(code)) {
                    return s;
                }
            }
        }
        return null;
    }
}